package yunplus.io.hchome.presenter.implement;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import yunplus.io.hchome.display.video.DeviceInfo;

/**
 * Created by cruze on 2017/6/25.
 */

public class ConnectPresenter {

    private Context mContext;
    public ConnectPresenter(Context context){
        this.mContext = context;
    }


    public void connect(DeviceInfo info){


        Intent intent = new Intent();
        Bundle bundle = new Bundle();
        bundle.putParcelable("DEVICEINFO",info);
        intent.putExtras(bundle);
        mContext.startActivity(intent);
    }




}
